package com.ns.scs.sms.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.entry.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 短信用户表
 *
 * @author lw
 * @since 2024-11-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "SCSS_SMS_USER")
public class SmsUser extends BaseModel {
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "SCSS_SMS_USER";

    /**
     * id，--主键、自增
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 模板id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long templateId;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
}
